package Entidades;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="elaboracionNoVenta")
@PrimaryKeyJoinColumn(name="idProd")
public class elaboracionNoVenta extends Producto implements Serializable {
	private static final long serialVersionUID=1L;
	
	@Column(nullable=false, length=20, name="caducidad")
	private String caducidad;
	
	@OneToOne(fetch=FetchType.EAGER)
	@JoinColumn(nullable=false, name="idReceta")
	private Receta recta;
}
